package com.telit.firecommand.dao;

import com.telit.firecommand.entity.FireDisposalInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FireDisposalInfoDao {
    int deleteByPrimaryKey(Long id);

    int insert(FireDisposalInfo record);

    int insertSelective(FireDisposalInfo record);

    FireDisposalInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FireDisposalInfo record);

    int updateByPrimaryKey(FireDisposalInfo record);

    /**
     * 根据火情id查询火情处置信息
     * @param fireId
     * @return
     */
    List<FireDisposalInfo> queryFireDisposalInfoByFireId(@Param("fireId") Long fireId);
}